<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language= "Java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <title>修改论文</title>
    <meta name = "viewport" content="width = device-width,initial-scale = 1.0">
<!--    引入Bootstrap-->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>

<body>
<div class = "container">
    <div class = "row clearfix">
        <div class = "col-md-12 column">
            <div class = "page-header">
                <h1>
                    基于ssm框架的管理系统：简单实现增删改查
                </h1>
            </div>
        </div>
    </div>
</div>

<div class="row clearfix">
    <div class="col-md-12 column">
        <div class = "page-header">
            <h1>
                <small>修改论文</small>
            </h1>
        </div>
    </div>
</div>

<form action = "" name = "userForm">
    <input type="hidden" name = "paperId" value="${firstproject.paperId}"/>
    论文名称：<input type = "text" name = "paperName" value="${firstproject.paperName}"/>
    论文数量：<input type = "text" name = "paperNum" value="$firstproject.paperNum}"/>
    论文详情：<input type = "text" name = "paperDetail" value="${firstproject.paperDetail}"/>
    <input type = "button" value="提交" onclick = "updatePaper()"/>
</form>
<script type="text/javascript">
    function updatePaper() {
        var form = document.forms[0];
        form.action = "<%=basePath%>firstproject/updatePaper";
        form.method = "post";
        form.submit();
    }
</script>

</body>
</html>